module.exports = function($scope, $state, $stateParams, $modalInstance,$resource,$modal,toaster, iteminfo, flag, type){
  console.log(iteminfo);
  console.log(flag, type);
  $scope.info = {
    'project_code' : iteminfo.project_code,
    'check_state' : '2'
  }
  $scope.getinfo = function (){
      $resource('/api/as/ggc/reviewPlanning/findLogsMessageList', {}, {})
      .save($scope.info, function (res) {
          if (res.errcode !== 0) {
              toaster.error({ title: "提示", body: res.errmsg });
              return;
          }
          console.log(res);
          $scope.objs = res.data;
      });
  }
  $scope.getinfo();
  $scope.cancel = function () {
    $modalInstance.close();
  }
}  